home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 55 / MOBICLIC 55.ISO / DATA / MOBICLUB / MEDIATTI.CST / 00012_Script_Wait Son < prev    next >
Text File  |  2003-06-26  |  1KB  |  39 lines

  1. property pPisteSon,pWaitSon,pClicOK
  2. --xxxxxxxxxxx
  3. on getBehaviorDescription me
  4.   return \
  5.     "Fait rester la tΩte de lecture sur place par dΘfaut ou dans l'attente de la fin de la lecture d'un son."
  6. end getBehaviorDescription
  7. --xxxxxxxxxxx
  8. on getBehaviorTooltip me
  9.   return \
  10.     "Indiquer si on attend la fin d'un son, et si oui, dans quelle piste celui-ci est lu."
  11. end getBehaviorTooltip
  12. --xxxxxxxxxxx
  13. on getPropertyDescriptionList
  14.   vPDList = [:]
  15.   setaProp vPDList, #pWaitSon, [#comment: "Attendre la lecture d'un son sur une piste ? :", \
  16.     #format: #boolean, #default: 1]
  17.   setaProp vPDList, #pPisteSon, [#comment: "Quelle piste ?", \
  18.     #format: #integer, #default: 3,#range:[#min:1,#max:8]]
  19.   setaProp vPDList, #pClicOK, [#comment: "Clic Θcran coupe son ? :", \
  20.     #format: #boolean, #default: 0]
  21.   return vPDList
  22. end getPropertyDescriptionList
  23. --xxxxxxxxxxx
  24. on exitFrame me
  25.   if pWaitSon = 1 then
  26.     if soundBusy(pPisteSon) = 1 then
  27.       go to the frame
  28.     end if
  29.   else
  30.     go to the frame
  31.   end if
  32. end
  33. --xxxxxxxxxxx
  34. on mouseDown me
  35.   if pClicOk then
  36.     coupeson pPisteSon
  37.   end if
  38. end
  39.